package com.example.springbootcousumer.controller;

import com.example.springbootcousumer.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CousumerController {
    @Autowired
    private ProductService productService;

    @RequestMapping(value = "getCousumer")
    public String getCousumer(){
        String str = productService.getProduct();
        return str;
    }
}
